package com.societyGames.dotsExercises
{
import com.societyGames.codeExercise.CodeExercise;

public class DotsCodeExercise extends CodeExercise
{
  public var dotsSimulation:DotsSimulation;

  override public function initialize():void
  {
    this.dotsSimulation.initialize(this._actionQueue);
    this.addChild(this.dotsSimulation.sprite);
  }

  protected override function evaluateWithExceptionsHandled():void
  {
    if (this.dotsSimulation.isComplete())
    {
      this.reportSuccess();
    }
    else
    {
      this.reportFailure();
    }
  }
}
}